class Main {
	public static void main(String[] args) {
		new Person().print();
		new Student().print();
	}
}

class Person {
	String getInfo() {
		return "Person";
	}

	void print() {
		System.out.println(getInfo());
	}
}

class Student extends Person {
	String getInfo() {
		return "Student";
	}
}
